/* TurkSerial Template
   Inspired by turkrutv.net
   Dark theme for Turkish series
*/

/* ==============================
   RESET & BASE
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.btn-close, #gotop {
	display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #e4e4e7;
    background: #0f0f1a;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #f97316;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   HEADER
   ============================== */
.header {
    background: #16162a;
    border-bottom: 1px solid #2a2a4a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    padding-left: 45px;
    background: url(../images/logotype.svg) 0 -1px / 40px no-repeat;
}

.logo:hover {
    color: #fff;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: #a1a1aa;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    background: #1e1e3a;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}

.header-search input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}

.header-search input::placeholder {
    color: #71717a;
}

.header-search button {
    padding: 12px 18px;
    color: #71717a;
    transition: color 0.2s;
}

.header-search button:hover {
    color: #f97316;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

.mobile-menu-btn {
    display: none;
    padding: 10px;
    color: #fff;
    font-size: 24px;
}

/* ==============================
   CATALOG BAR
   ============================== */
.catalog-bar {
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a4a;
    padding: 12px 0;
}

.catalog-scroll {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.catalog-scroll::-webkit-scrollbar {
    display: none;
}

.cat-item {
    padding: 8px 18px;
    background: #252545;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-item:hover,
.cat-item.active {
    background: #f97316;
    color: #fff;
}

/* ==============================
   MAIN CONTENT
   ============================== */
.main-content {
    padding: 30px 0 50px;
    min-height: calc(100vh - 200px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #71717a;
}

.breadcrumbs a {
    color: #a1a1aa;
}

.breadcrumbs a:hover {
    color: #f97316;
}

/* ==============================
   SECTIONS
   ============================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.sort-dropdown {
    padding: 8px 16px;
    background: #1e1e3a;
    border-radius: 8px;
    font-size: 14px;
}

/* ==============================
   SERIES GRID (Cards)
   ============================== */
.series-grid,
#dle-content {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

/* Отключаем грид когда внутри страница сериала */
#dle-content:has(.serial-page),#dle-content:has([name="registration"]) {
    display: block !important;
}

/* Пагинация на всю ширину под сеткой */
#dle-content > #bottom-nav {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

.series-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-poster,
.series-card .card-poster,
article.series-card .card-poster {
    position: relative;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    display: block;
}

.card-poster img,
.series-card .card-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s;
}

.series-card:hover .card-poster img {
    transform: scale(1.05);
}

.card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
}

.card-rating span {
	padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.card-info {
    padding: 12px;
}

.card-title {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: #f97316;
}

.card-meta {
    margin-bottom: 5px;
}

.card-episode {
    display: inline-block;
    padding: 2px 8px;
    background: #f97316;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.card-genres {
    font-size: 11px;
    color: #71717a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==============================
   SERIAL PAGE (fullstory)
   ============================== */
.serial-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.serial-header {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #2a2a4a;
}

.serial-poster {
    width: 100%;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.serial-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.serial-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.serial-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.serial-title .edit-icon {
    font-size: 14px;
    color: #71717a;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.serial-title:hover .edit-icon {
    opacity: 1;
}

.serial-ratings {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid #2a2a4a;
}

.rating-label {
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.rating-badge.imdb .rating-value {
    color: #f5c518;
}

.rating-badge.kp .rating-value {
    color: #ff6600;
}

.serial-details {
    margin-bottom: 18px;
    flex: 1;
}

.serial-details li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    display: flex;
    line-height: 1.5;
}

.serial-details li:last-child {
    border-bottom: none;
}

.serial-details li span {
    color: #71717a;
    min-width: 85px;
    flex-shrink: 0;
}

.serial-details li a {
    color: #e4e4e7;
}

.serial-details li a:hover {
    color: #f97316;
}

.serial-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #e4e4e7;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.action-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.action-btn.complaint {
    background: transparent;
    border-color: #3f3f5a;
}

.action-btn.complaint:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Description */
.serial-description {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid #2a2a4a;
    border-radius: 14px;
    padding: 22px 25px;
    margin-bottom: 25px;
}

.serial-description h2 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.serial-description h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #f97316;
    border-radius: 2px;
}

.description-text {
    color: #a1a1aa;
    line-height: 1.75;
    font-size: 14px;
}

/* Player Section */
.player-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid #2a2a4a;
    border-radius: 14px;
    padding: 22px 25px;
    margin-bottom: 25px;
}

.player-section h2 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-section h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #f97316;
    border-radius: 2px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #f97316;
    color: #fff;
}

.tab-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Related & Comments */
.related-section,
.comments-section {
    margin-bottom: 25px;
}

.related-section h2,
.comments-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-section h2::before,
.comments-section h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #f97316;
    border-radius: 2px;
}

.comments-count {
    font-size: 13px;
    color: #71717a;
    font-weight: 400;
    margin-left: 5px;
}

.comments-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid #2a2a4a;
    border-radius: 14px;
    padding: 22px 25px;
}

/* ==============================
   FOOTER
   ============================== */
/* FOOTER STYLES */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.footer-about,
.footer-text {
    line-height: 1.6;
    color: #cccccc;
    font-size: 14px;
}

.footer-about h3,
.footer-categories h3,
.footer-links h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.footer-about p {
    margin: 0;
    line-height: 1.7;
}

.footer-about strong {
    color: #fff;
    font-weight: 600;
}

.footer-categories ul,
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-categories a,
.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-categories a:hover,
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999999;
    font-size: 13px;
    line-height: 1.6;
}

.footer-copyright p {
    margin: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-logo .logo-text {
        font-size: 20px;
    }
    
    .footer-about h3,
    .footer-categories h3,
    .footer-links h3 {
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .header-search {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .header-search {
        display: none;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .serial-page {
        padding: 15px;
    }
    
    .serial-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .serial-poster {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
    
    .serial-title {
        font-size: 22px;
        text-align: center;
    }
    
    .serial-ratings {
        justify-content: center;
    }
    
    .serial-details li {
        flex-direction: column;
        gap: 3px;
    }
    
    .serial-details li span {
        min-width: auto;
    }
    
    .serial-actions {
        justify-content: center;
    }
    
    .serial-description,
    .player-section,
    .comments-content {
        padding: 18px;
    }
    
    .series-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .series-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
}

/* ==============================
   PAGINATION
   ============================== */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.navigation a,
.navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: #1e1e3a;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #a1a1aa;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navigation a:hover {
    border-color: #f97316;
    color: #fff;
    background: #252545;
}

.navigation span.nav_ext {
    background: transparent;
    border: none;
    min-width: auto;
    padding: 0 5px;
    color: #71717a;
}

.navigation span:not(.nav_ext) {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-color: transparent;
}

/* ==============================
   LOGIN POPUP
   ============================== */
.overlay-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.login-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f0f1a;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.login-avatar {
    text-align: center;
    margin-bottom: 24px;
    font-size: 48px;
    color: var(--accent-color);
}

.login-input {
    margin-bottom: 16px;
}

.login-input input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.login-check {
    margin-bottom: 20px;
    font-size: 14px;
}

.login-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-btn button {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.login-btm {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.login-btm a {
    color: var(--accent-color);
}

.login-soc-title {
    text-align: center;
    margin: 20px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.login-soc-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.login-soc-btns img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ==============================
   UTILITIES
   ============================== */
.hidden {
    display: none;
}

.fx-row {
    display: flex;
    flex-wrap: wrap;
}

.fx-middle {
    align-items: center;
}

.fx-between {
    justify-content: space-between;
}

.fx-1 {
    flex: 1;
}

/* Lazy load images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* ==============================
   FORMS (Registration, Feedback, etc.)
   ============================== */
.form-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.form-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form-wrap .full-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-wrap .full-text a {
    color: var(--accent-color);
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-item input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-item input[type="button"] {
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
}

.form-item input[type="button"]:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.form-secur {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-secur input[type="text"] {
    flex: 1;
    min-width: 150px;
}

.form-textarea {
    margin-bottom: 16px;
}

.form-textarea label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-textarea textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
}

.form-submit {
    margin-top: 24px;
}

.form-submit button {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit button:hover {
    background: var(--accent-hover);
}

#result-registration {
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Override engine.css form styles */
.form-item {
    padding-left: 0 !important;
    position: relative;
}

.form-item > label {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 0 8px 0 !important;
}

.form-item > input[type="text"],
.form-item > input[type="password"],
.form-item > input[type="file"] {
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-item > input[type="button"] {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    height: auto !important;
    line-height: normal !important;
}

/* ==============================
   FORMS - Enhanced
   ============================== */
.form-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.form-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form-wrap .full-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-wrap > div {
    margin-bottom: 20px;
}

.form-item {
    margin-bottom: 20px;
    padding-left: 0 !important;
}

.form-item > label {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"],
.form-item input[type="file"],
.form-wrap input[type="text"],
.form-wrap input[type="password"],
.form-wrap input[type="email"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px;
    background: #2a2a4a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.form-item input:focus,
.form-wrap input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-item input[type="button"],
.form-wrap input[type="button"] {
    display: inline-block !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin-top: 10px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
}

.form-item input[type="button"]:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.form-secur {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-textarea {
    margin-bottom: 20px;
}

.form-textarea > label {
    display: block;
    margin-bottom: 8px;
    padding: 0 !important;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-textarea textarea,
.form-wrap textarea {
    width: 100%;
    padding: 14px 16px;
    background: #2a2a4a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.form-textarea textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-submit,
.form-wrap .form-submit {
    margin-top: 24px;
}

.form-submit button,
.form-wrap button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #2a2a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 0;
}

.form-submit button:hover {
    background: var(--accent-hover);
}

#result-registration {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}

#result-registration ul {
    margin: 0;
    padding-left: 20px;
}

.imp > label:after {
    content: "*";
    margin-left: 5px;
    color: var(--accent-color);
}
