/**
 * Yatırım Ekle — mobil uygulama arayüzü (finanssepeti.net)
 * Tüm kurallar #investmentFormModal ile kapsamlanır; site geneli stillerinden bağımsız.
 */
#investmentFormModal.market-modal {
    display: none;
    position: fixed;
    z-index: 9500;
    inset: 0;
    background: rgba(3, 10, 37, 0.92);
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

#investmentFormModal .yatirim-ekle-inner {
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 16px 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(42, 168, 255, 0.35);
    background: linear-gradient(180deg, #0c1a5c 0%, #050f38 55%, #040c2e 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    box-sizing: border-box;
}

#investmentFormModal .yatirim-ekle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

#investmentFormModal .yatirim-ekle-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

#investmentFormModal .yatirim-ekle-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.02em;
    text-transform: none;
}

#investmentFormModal .yatirim-ekle-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#investmentFormModal .yatirim-ekle-note {
    font-size: 11px;
    line-height: 1.5;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.45);
    border-radius: 10px;
    padding: 10px 11px;
    margin: 0 0 14px;
}

#investmentFormModal .yatirim-ekle-note strong {
    color: #fff;
    font-weight: 700;
}

#investmentFormModal .yatirim-ekle-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#investmentFormModal .yatirim-ekle-label {
    display: block;
    color: #cbd5f5;
    font-size: 12px;
    font-weight: 600;
    margin: 10px 0 5px;
}

#investmentFormModal .inv-input,
#investmentFormModal .yatirim-date-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2a3b7a !important;
    background: #0a1040 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-family: inherit;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

#investmentFormModal .yatirim-date-btn {
    text-align: left;
    cursor: pointer;
    font-weight: 600;
}

#investmentFormModal #invDate {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

#investmentFormModal .yatirim-search-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

#investmentFormModal .yatirim-search-row .inv-input {
    flex: 1 1 auto;
    min-width: 0;
}

#investmentFormModal .yatirim-ara-btn {
    flex: 0 0 auto;
    min-width: 76px;
    width: auto;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #ffd7b0 !important;
    background: #ff6d00 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    cursor: pointer;
    box-shadow: none;
}

#investmentFormModal .yatirim-ara-btn:hover {
    filter: brightness(1.08);
}

#investmentFormModal .yatirim-ara-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

#investmentFormModal .inv-choice-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 6px;
}

#investmentFormModal .inv-choice-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(42, 168, 255, 0.5) !important;
    background: #0d1b4d !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

#investmentFormModal .inv-choice-btn:hover {
    background: #2aa8ff !important;
    color: #030a25 !important;
}

#investmentFormModal .yatirim-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 4px;
}

#investmentFormModal .yatirim-total-label {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 14px;
}

#investmentFormModal .yatirim-total-value {
    color: #ffffff;
    font-weight: 900;
    font-size: 17px;
}

#investmentFormModal .yatirim-kaydet-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #ffd7b0 !important;
    background: #ff6d00 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

#investmentFormModal .yatirim-kaydet-btn:hover {
    filter: brightness(1.06);
}

#investmentFormModal #invMessage {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    border-radius: 8px;
    padding: 8px;
}

#investmentFormModal #invMessage.inv-success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

#investmentFormModal #invMessage.inv-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

/* Eski investment-modal-inner genişliği ezmesin */
#investmentFormModal .investment-modal-inner.yatirim-ekle-inner {
    max-width: 420px;
}

@media (max-width: 480px) {
    #investmentFormModal.market-modal {
        padding: 0;
        align-items: flex-end;
    }
    #investmentFormModal .yatirim-ekle-inner {
        max-width: 100%;
        max-height: 96vh;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}

body.theme-light #investmentFormModal .yatirim-ekle-inner {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-color: #1e3a5f;
}

body.theme-light #investmentFormModal .yatirim-ekle-title,
body.theme-light #investmentFormModal .yatirim-ekle-close {
    color: #0f172a !important;
}

body.theme-light #investmentFormModal .inv-input,
body.theme-light #investmentFormModal .yatirim-date-btn {
    background: #fff !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
