/* AI კონტეინერის საერთო სტილი */
.ai-container {
    max-width: 550px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff !important;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* სამივე ელემენტის გათანაბრება */
#customAiCategory, 
#aiGenBtn, 
#aiResult {
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 🚀 სელექტორის ტრიგერი - ისრის მარჯვნივ დასაბრუნებლად */
#customAiCategory .custom-select-trigger {
    height: 50px !important;
    border: 1px solid #ddd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* ისარი წავა კიდეში */
    padding: 0 15px !important;
    background: #ffffff;
    cursor: pointer;
}

/* ტექსტი სელექტორში - რომ ცენტრში დარჩეს ისრის მიუხედავად */
#customAiSelectText {
    flex-grow: 1 !important;
    text-align: center !important;
    padding-left: 20px !important; /* კომპენსაცია ისრისთვის */
}

/* ღილაკის სიმაღლე და სტილი */
#aiGenBtn {
    height: 50px !important;
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aiResult {
    margin-top: 20px !important;
    border: 1px solid #ddd !important;
    min-height: 110px !important;
    background: #fdfdfd !important;
    padding: 20px !important;
    line-height: 1.6;
    color: #1f2937;
    
    /* 🚀 აი ეს სამი ხაზი აცენტრებს ტექსტს იდეალურად */
    display: flex !important;
    align-items: center !important;    /* ვერტიკალური ცენტრირება */
    justify-content: center !important; /* ჰორიზონტალური ცენტრირება */
    text-align: center !important;
}

/* ისრის ზომა და ფერი */
.custom-select-trigger .arrow {
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

/* Dark Mode შესწორებები */
body.dark-mode .ai-container {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode #aiResult {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #e5e7eb !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode #customAiCategory .custom-select-trigger {
    background: #1f2937 !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
      * {
        box-sizing: border-box;
        outline: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }
      body {
        margin: 0;
        font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        background: linear-gradient(135deg, #1f2937, #111827);
        color: white;
        min-height: 100vh;
        overflow-x: hidden;
      }

      header.main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 35px;
        background: #111827;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        position: sticky;
        top: 0;
        z-index: 100;
      }

      /* ლოგოს სტილი */
      .logo {
        font-size: 24px;
        font-weight: 800;
        cursor: pointer;
        color: #ffffff;
      }

      /* ფარული ზარის სტილი - ლოგოსნაირი, ჰოვერის გარეშე */
      .soon-link {
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        cursor: pointer;
        margin-left: 15px; /* დაშორება ლოგოსგან */
        opacity: 0.9;
      }

      /* კონტეინერი მარცხენა ნაწილისთვის, რომ ერთ ხაზზე დარჩნენ, მაგრამ ცალკე ელემენტები იყოს */
      .header-left {
        display: flex;
        align-items: center;
      }

      .header-controls {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
      }
      .header-controls select {
        padding: 10px 15px;
        border-radius: 14px;
        border: 3px solid #3b82f6;
        background: #1f2937;
        color: white;
        cursor: pointer;
        font-weight: 700;
        font-size: 14px;
        min-width: 115px;
        text-align: center;
      }

      .container {
        max-width: 550px;
        margin: 50px auto;
        background: #ffffff;
        padding: 35px;
        border-radius: 26px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        color: #111827;
      }
      label.title {
        display: block;
        margin-top: 15px;
        font-size: 13px;
        font-weight: 700;
        color: #374151;
      }
      input,
      .container select,
      textarea {
        width: 100%;
        height: 48px;
        padding: 12px;
        margin-top: 6px;
        border-radius: 12px;
        border: 1px solid #ddd;
        background: #fdfdfd;
        font-size: 16px !important;
      }
      #typeSelect {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }
      #typeSelect:active {
        transform: scale(0.98);
      }
      textarea {
        height: 110px;
        resize: none;
      }
      .price {
        margin: 20px 0;
        text-align: center;
        font-size: 19px;
        font-weight: 800;
        color: #111827;
      }
      .bank-accounts {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 15px 0;
      }
      .bank-btn {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #111827;
        border-radius: 14px;
        cursor: pointer;
        background: white;
        transition: all 0.2s;
      }
      .bank-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }
      .upload-box {
        height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    border: 1px solid #ddd;
            border-radius: 14px;
        cursor: pointer;
        background: transparent;
        text-align: center;
        padding: 10px;
      }
      .upload-box .icon {
        font-size: 35px;
        margin-bottom: 5px;
      }
      .upload-box input {
        display: none;
      }
      .upload-box.has-file {
        border-color: #10b981;
        background: #f0fdf4;
        border-style: solid;
      }
      .checkbox-area {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin: 20px 0;
      }
      .checkbox-area span {
        font-size: 14px;
        font-weight: 600;
      }
      .checkbox-area input {
        width: 22px;
        height: 22px;
        appearance: none;
    border: 1px solid #ddd;
            border-radius: 50%;
        position: relative;
        cursor: pointer;
        background: white;
        margin: 0;
      }
      .checkbox-area input:checked {
        background: #3b82f6;
        border-color: #3b82f6;
      }
      .checkbox-area input:checked::after {
        content: "✔";
        position: absolute;
        color: white;
        font-size: 14px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
      button#submitBtn {
        width: 100%;
        padding: 16px;
        border-radius: 14px;
        border: none;
        background: #9ca3af;
        color: white;
        font-weight: 800;
        font-size: 16px;
        cursor: not-allowed;
      }
      button#submitBtn.active {
        background: #3b82f6;
        cursor: pointer;
      }

      footer {
        background: #111827;
        color: white;
        padding: 50px 20px;
      }
      .footer-container {
        max-width: 1200px;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .footer-grid {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        flex-wrap: wrap;
        gap: 25px;
      }
      .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-width: 160px;
        flex: 1;
      }
      .footer-col h4 {
        align-self: flex-start;
        margin-bottom: 15px;
        color: #ffffff;
        border-bottom: 2px solid #3b82f6;
        display: table;
        padding-bottom: 2px;
      }
      .footer-grid a {
        color: #ffffff;
        text-decoration: none !important;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        opacity: 0.85;
        font-size: 14px;
        cursor: pointer;
      }
      .footer-grid a:hover {
        opacity: 1;
        color: #3b82f6;
      }
      .footer-grid a svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
      }
      .footer-bottom {
        text-align: center;
        margin-top: 35px;
        font-size: 14px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        line-height: 1.7;
        width: 100%;
      }

      .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        backdrop-filter: blur(5px);
      }
      .modal-content {
        background: white;
        color: #111827;
        width: 90%;
        max-width: 500px;
        padding: 30px;
        border-radius: 24px;
        position: relative;
        max-height: 85vh;
        overflow-y: auto;
      }
      .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 25px;
        cursor: pointer;
        font-weight: bold;
        color: #111827;
      }
      .modal-overlay.active {
        display: flex;
      }
      #modalBodyText {
        white-space: pre-wrap;
        line-height: 1.6;
        font-size: 15px;
        color: #374151;
      }

      body.light-mode {
        background: #f1f5f9;
      }
      body.light-mode .container {
        background: #ffffff;
        border: 1px solid #e2e8f0;
      }
      body.light-mode header.main-header,
      body.light-mode footer {
        background: #334155;
      }
      #lnkForbiddenHeader {
        display: block;
        width: fit-content;
        margin: 0 auto 30px auto;
        color: #ef4444;
        font-weight: 800;
        font-size: 16px;
        border: 2px solid #ef4444;
        padding: 10px 25px;
        border-radius: 50px;
        cursor: pointer;
        text-decoration: none;
      }
      #lnkForbiddenHeader:hover {
        background: #ef4444;
        color: white;
      }

      @media (max-width: 768px) {
        .container,
        .ai-container {
          margin: 30px 15px !important;
          width: auto !important;
          padding: 25px 20px !important;
        }
        header.main-header {
          padding: 15px 20px;
        }
        .logo {
          font-size: 20px;
        }
        .soon-link {
          font-size: 13px;
          margin-left: 10px;
        }
        .header-controls {
          gap: 10px;
        }
        .header-controls select {
          min-width: auto;
          padding: 8px 10px;
          font-size: 13px;
        }
        .footer-grid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 30px;
        }
      }
      @media (max-width: 480px) {
        header.main-header {
          padding: 12px 15px;
        }
        .logo {
          font-size: 18px;
        }
        .soon-link {
          font-size: 12px;
          margin-left: 8px;
        }
        .header-controls select {
          padding: 6px 8px;
          font-size: 12px;
          border-width: 2px;
        }
        .container,
        .ai-container {
          margin: 20px 10px !important;
          padding: 20px 15px !important;
        }
        .price {
          font-size: 17px;
        }
        .footer-grid {
          grid-template-columns: 1fr;
          gap: 40px;
          text-align: center;
        }
        .footer-col {
          width: 100%;
          align-items: center !important;
          text-align: center !important;
        }
        .footer-col h4 {
          align-self: center !important;
          text-align: center;
          margin-bottom: 20px;
        }
        .footer-grid a {
          justify-content: center;
          font-size: 15px;
          width: 100%;
        }
        .footer-bottom {
          margin-top: 40px;
          padding-top: 30px;
          font-size: 13px;
        }
        .modal-content {
          padding: 25px 15px;
          width: 92%;
        }
        .bank-btn svg,
        .bank-btn img {
          transform: scale(0.9);
        }
      }
      .copy-toast {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #10b981;
        color: white;
        padding: 12px 24px;
        border-radius: 30px;
        font-weight: bold;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        z-index: 2000;
      }
      .copy-toast.show {
        opacity: 1;
      }
      /* 🌟 Dropdown (Select) მენიუს მოდერნიზაცია */
.header-controls select, .container select, #aiCategory {
    /* ვშლით ბრაუზერის სტანდარტულ, მახინჯ ისარს */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* ვსვამთ ჩვენს, თანამედროვე მინიმალისტურ ისარს */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 40px !important; /* ისრისთვის ადგილის დატოვება ტექსტისგან */
}

/* ჩამოშლილი Option-ების (ჩამონათვალის) გაფერადება */
select option {
    background-color: #1f2937;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 10px;
}

/* Light Mode-ისთვის Option-ების ფერების შეცვლა */
body.light-mode select option {
    background-color: #ffffff;
    color: #111827;
}
/* 🌟 Custom Select-ის პრემიუმ დიზაინი */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-top: 8px;
}
.custom-select-trigger {
    width: 100%;
    height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* როცა ღიაა, ინთება ლურჯად */
.custom-select-wrapper.open .custom-select-trigger {
    border-color: #3b82f6;
    background: #fff;
    border: 1px solid #ddd;
  }
/* ანიმაციური ისარი */
.custom-select-trigger .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-3px) rotate(45deg);
    transition: all 0.3s ease;
}
.custom-select-wrapper.open .custom-select-trigger .arrow {
    transform: translateY(3px) rotate(-135deg);
}
/* ჩამოსაშლელი სია - ზუსტად კონტეინერის სიგანეზე */
.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
    overflow: hidden;
}
.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-option {
    padding: 14px 16px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.custom-option:last-child {
    border-bottom: none;
}
.custom-option:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    padding-left: 22px; /* Hover-ზე ოდნავ მარჯვნივ იწევა */
}

/* Light Mode მხარდაჭერა */
body.light-mode .custom-select-trigger {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-mode .custom-select-wrapper.open .custom-select-trigger {
    border-color: #3b82f6;
}
body.light-mode .custom-options {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
}
body.light-mode .custom-option {
    color: #475569;
    border-color: #f1f5f9;
}
body.light-mode .custom-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}
/* ჰედერის განლაგება */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 🍔 მენიუს ღილაკის სტილი */
.menu-btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
    transition: 0.3s;
}

/* 📱 ჩამოსაშლელი მენიუს დიზაინი */
.side-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

.side-menu.active {
    transform: translateY(10px);
    opacity: 1;
    visibility: visible;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    display: block;
}

/* Light Mode მხარდაჭერა */
body.light-mode .menu-btn span { background: #111827; }
body.light-mode .side-menu { background: #ffffff; color: #111827; }
body.light-mode .menu-link { color: #111827; }