/* ===================================
   PANEL PAGE STYLES
   =================================== */

/* Panel Background */
.panel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/main_bg.png') top center no-repeat;
    background-size: cover;
    z-index: -1;
}

/* Panel Section */
.panel-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 60px;
    gap: 15px;
}

/* Logo artık hero-logo class'ı kullanıyor (style.css) */

/* ===================================
   USER PROFILE BUTTON (Header)
   =================================== */
.user-profile-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 15px 6px 6px;
    background: linear-gradient(180deg,
            rgba(40, 30, 25, 0.9) 0%,
            rgba(25, 20, 18, 0.95) 100%);
    border: 1px solid rgba(201, 168, 108, 0.4);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    border-color: rgba(201, 168, 108, 0.7);
    background: linear-gradient(180deg,
            rgba(50, 40, 32, 0.95) 0%,
            rgba(35, 28, 24, 0.98) 100%);
    box-shadow: 0 0 20px rgba(201, 168, 108, 0.2);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 168, 108, 0.5);
    transition: all 0.3s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-btn:hover .user-avatar {
    border-color: rgba(201, 168, 108, 0.9);
    box-shadow: 0 0 10px rgba(201, 168, 108, 0.4);
}

.user-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    color: #c9a86c;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.3);
}

.user-arrow {
    font-size: 8px;
    color: #8a8078;
    transition: transform 0.3s ease;
}

.user-profile-btn:hover .user-arrow {
    transform: rotate(180deg);
    color: #c9a86c;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 180px;
    background: linear-gradient(180deg,
            rgba(30, 25, 22, 0.98) 0%,
            rgba(20, 16, 14, 0.99) 100%);
    border: 1px solid rgba(201, 168, 108, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(201, 168, 108, 0.1);
    z-index: 1000;
}

.user-profile-btn:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #8a8078;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-option:hover {
    background: rgba(201, 168, 108, 0.1);
    color: #c9a86c;
    padding-left: 22px;
}

.user-option.active {
    color: #c9a86c;
    background: rgba(201, 168, 108, 0.08);
}

.user-option-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(201, 168, 108, 0.15);
    margin: 8px 15px;
}

.user-option-logout {
    color: #aa6666;
}

.user-option-logout:hover {
    color: #ff8888;
    background: rgba(255, 100, 100, 0.1);
}

/* ===================================
   CHARACTERS BOX
   =================================== */
.characters-box {
    position: relative;
    width: 100%;
    max-width: 750px;
    padding: 18px 30px;
}

.characters-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    border-radius: 8px;
}

.characters-grid {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.character-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.character-item:hover {
    background: rgba(201, 168, 108, 0.1);
    transform: translateY(-3px);
}

.character-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 108, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
}

.character-item:hover .character-avatar {
    border-color: rgba(201, 168, 108, 0.8);
    box-shadow: 0 0 15px rgba(201, 168, 108, 0.4);
}

.character-info {
    display: flex;
    flex-direction: column;
}

.character-name {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #c9a86c;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.4);
}

.character-level {
    font-size: 11px;
    color: #c9a86c;
    opacity: 0.7;
}

/* ===================================
   CONTROL BOX
   =================================== */
.control-box {
    position: relative;
    width: 100%;
    max-width: 750px;
    padding: 25px 40px;
}

.control-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    border-radius: 8px;
}

.control-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
}

.control-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    position: relative;
    min-width: 130px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    transition: all 0.3s ease;
}

.control-btn span {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e8dcc8;
}

.control-btn:hover {
    transform: translateY(-2px);
}

.control-btn:hover .btn-bg {
    filter: brightness(1.3);
}

.control-btn.btn-danger span {
    color: #ff9999;
}

.control-desc {
    font-size: 10px;
    color: #6a6058;
    flex: 1;
    white-space: nowrap;
}

/* Control Image (Right Column) */
.control-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    flex: 1;
}

.panel-character-img {
    height: 180px;
    border-radius: 8px;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    mask-image: radial-gradient(ellipse 85% 85% at center,
            black 40%,
            rgba(0, 0, 0, 0.8) 55%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at center,
            black 40%,
            rgba(0, 0, 0, 0.8) 55%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 85%);
}

.panel-character-img:hover {
    filter: drop-shadow(0 0 20px rgba(201, 168, 108, 0.3));
}

/* ===================================
   DONATION BOX
   =================================== */
.donation-box {
    position: relative;
    width: 100%;
    max-width: 750px;
    padding: 25px 30px;
}

.donation-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    border-radius: 8px;
}

.donation-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* DC Info */
.dc-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
}

.dc-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dc-label {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    color: #c9a86c;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.4);
    letter-spacing: 1px;
}

.dc-value {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: #c9a86c;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Payment Methods Grid */
.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.payment-methods {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.payment-btn {
    position: relative;
    width: 95px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.payment-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    transition: all 0.3s ease;
}

.payment-logo {
    position: relative;
    z-index: 1;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-3px);
}

.payment-btn:hover .payment-bg {
    filter: brightness(1.3);
    box-shadow: 0 5px 25px rgba(50, 120, 200, 0.4);
}

.payment-btn:hover .payment-logo {
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 992px) {
    .panel-section {
        padding-top: 100px;
    }

    .characters-box,
    .control-box,
    .donation-box {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .panel-section {
        padding-top: 90px;
    }

    .characters-grid {
        flex-wrap: wrap;
        gap: 15px;
    }

    .control-content {
        flex-direction: column;
        gap: 20px;
    }

    .control-image {
        order: -1;
    }

    .panel-character-img {
        height: 150px;
    }

    .control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .control-btn {
        width: 100%;
        min-width: unset;
    }

    .donation-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dc-info {
        flex-direction: row;
        gap: 30px;
    }

    .payment-grid {
        align-items: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .payment-btn {
        width: 80px;
        height: 45px;
    }

    /* Popup responsive */
    .popup-box {
        min-width: 90%;
        max-width: 95%;
        padding: 25px 20px;
        margin: 0 10px;
    }

    .popup-title {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .panel-section {
        padding-top: 80px;
        gap: 10px;
    }

    .characters-box,
    .control-box,
    .donation-box {
        padding: 15px;
    }

    .character-item {
        padding: 5px 8px;
    }

    .character-avatar {
        width: 35px;
        height: 35px;
    }

    .character-name {
        font-size: 11px;
    }

    .character-level {
        font-size: 10px;
    }

    .panel-character-img {
        height: 120px;
    }

    .control-btn {
        height: 35px;
    }

    .control-btn span {
        font-size: 10px;
    }

    .control-desc {
        font-size: 9px;
        white-space: normal;
    }

    .payment-methods {
        gap: 8px;
    }

    .payment-btn {
        width: 65px;
        height: 38px;
    }

    .dc-info {
        gap: 20px;
    }

    .dc-label {
        font-size: 12px;
    }

    .dc-value {
        font-size: 16px;
    }

    .popup-input-wrapper input,
    .popup-input-wrapper select {
        padding: 10px 12px;
        font-size: 12px;
    }

    .popup-submit {
        height: 38px;
    }

    .popup-submit span {
        font-size: 11px;
    }
}

/* ===================================
   POPUP STYLES
   =================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    position: relative;
    background: linear-gradient(180deg,
            rgba(25, 20, 18, 0.98) 0%,
            rgba(18, 14, 12, 0.99) 50%,
            rgba(12, 10, 8, 0.98) 100%);
    border: 1px solid rgba(201, 168, 108, 0.3);
    border-radius: 10px;
    padding: 35px 40px;
    min-width: 380px;
    max-width: 450px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(201, 168, 108, 0.1),
        inset 0 1px 0 rgba(201, 168, 108, 0.1);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-box {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #6a6058;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    color: #c9a86c;
    text-shadow: 0 0 10px rgba(201, 168, 108, 0.5);
    transform: rotate(90deg);
}

.popup-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 20px;
    font-weight: 700;
    color: #c9a86c;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
}

.popup-warning {
    text-align: center;
    color: #ff6b6b;
    font-size: 12px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 5px;
}

.popup-info {
    text-align: center;
    color: #8a8078;
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popup-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-input-group label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    color: #8a8078;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-input-wrapper {
    position: relative;
    background: rgba(15, 12, 10, 0.8);
    border: 1px solid rgba(100, 90, 80, 0.4);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.popup-input-wrapper:focus-within {
    border-color: rgba(201, 168, 108, 0.6);
    box-shadow: 0 0 15px rgba(201, 168, 108, 0.15);
}

.popup-input-wrapper input,
.popup-input-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #c4b59d;
}

.popup-input-wrapper input::placeholder {
    color: #5a5048;
}

.popup-input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8078' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.popup-input-wrapper select option {
    background: #1a1512;
    color: #c4b59d;
}

.popup-submit {
    position: relative;
    width: 100%;
    height: 42px;
    margin-top: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-submit .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    transition: all 0.3s ease;
}

.popup-submit span {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e8dcc8;
}

.popup-submit:hover {
    transform: translateY(-2px);
}

.popup-submit:hover .btn-bg {
    filter: brightness(1.3);
}

.popup-submit-danger span {
    color: #ff9999;
}

.popup-danger .popup-title {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 100, 100, 0.5);
}