/* =========================================================
   PLUS MOBILE - ACCOUNT / KONTO / MEIN KONTO
========================================================= */

.pm-account-page {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    padding: 70px 20px;
    background:
        radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.10), transparent 32%),
        linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}

.pm-account-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid var(--pm-border);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(91, 33, 182, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pm-account-logo {
    display: block;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--pm-primary-dark);
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

/* =========================================================
   ACCOUNT TABS
========================================================= */

.pm-account-tab {
    width: 100%;
    height: 58px;
    border: 2px solid var(--pm-primary) !important;
    border-radius: 18px;
    background: #fff !important;
    color: var(--pm-primary) !important;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.pm-account-tab:hover,
.pm-account-tab.active {
    background: var(--pm-primary-soft) !important;
    color: var(--pm-primary-dark) !important;
}

.pm-account-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0;
    color: var(--pm-text);
    font-weight: 900;
    text-align: center;
}

.pm-account-divider::before,
.pm-account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pm-border);
}

/* =========================================================
   ACCOUNT FORM
========================================================= */

.pm-account-form {
    display: none;
}

.pm-account-form.active {
    display: block;
}

.pm-account-form h2 {
    margin: 0 0 22px;
    color: var(--pm-text);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.pm-account-form label {
    display: block;
    margin: 14px 0 7px;
    color: var(--pm-text);
    font-size: 13px;
    font-weight: 900;
}

.pm-account-form input[type="text"],
.pm-account-form input[type="email"],
.pm-account-form input[type="password"],
.pm-account-form input[type="tel"],
.pm-account-form textarea,
.pm-account-form select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--pm-border) !important;
    border-radius: 16px;
    padding: 0 16px;
    background: #fff;
    color: var(--pm-text);
    outline: none !important;
    box-shadow: none !important;
    transition: 0.2s ease;
}

.pm-account-form textarea {
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}

.pm-account-form input:focus,
.pm-account-form textarea:focus,
.pm-account-form select:focus {
    border-color: var(--pm-primary) !important;
    box-shadow: 0 0 0 4px var(--pm-primary-soft) !important;
}

.pm-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 24px;
}

.pm-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--pm-muted);
    font-size: 14px !important;
    font-weight: 750 !important;
}

.pm-check input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: var(--pm-primary);
}

.pm-account-row a {
    color: var(--pm-primary);
    font-weight: 900;
}

.pm-account-form button[type="submit"] {
    width: 100%;
    height: 58px;
    border: 0 !important;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark)) !important;
    color: #fff !important;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.24);
    transition: 0.2s ease;
}

.pm-account-form button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* =========================================================
   FORM MESSAGES
========================================================= */

.pm-form-error,
.pm-form-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 850;
}

.pm-form-error {
    background: #fff1f2;
    color: #be123c;
}

.pm-form-success {
    background: #f0fdf4;
    color: #15803d;
}

/* =========================================================
   DASHBOARD PAGE
========================================================= */

.pm-dashboard-page {
    padding: 70px 0 100px;
    background:
        radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.10), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}

.pm-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.pm-dashboard-head h1 {
    margin: 0 0 10px;
    color: var(--pm-text);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.pm-dashboard-head p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 17px;
}

.pm-logout-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pm-primary) !important;
    font-weight: 900;
    transition: 0.2s ease;
}

.pm-logout-button:hover {
    border-color: var(--pm-primary);
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark) !important;
}

.pm-dashboard-notice {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 900;
}

/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.pm-dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.pm-dashboard-menu {
    position: sticky;
    top: 150px;
    padding: 16px;
    border: 1px solid var(--pm-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(91, 33, 182, 0.06);
}

.pm-dashboard-menu button,
.pm-dashboard-menu a {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 0 !important;
    border-radius: 16px;
    padding: 0 16px;
    background: transparent !important;
    color: var(--pm-text) !important;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.pm-dashboard-menu button:hover,
.pm-dashboard-menu button.active,
.pm-dashboard-menu a:hover,
.pm-dashboard-menu a.active {
    background: var(--pm-primary-soft) !important;
    color: var(--pm-primary-dark) !important;
}

.pm-dashboard-content {
    min-height: 520px;
}

.pm-dashboard-panel {
    display: none;
    padding: 34px;
    border: 1px solid var(--pm-border);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(91, 33, 182, 0.06);
}

.pm-dashboard-panel.active {
    display: block;
}

.pm-dashboard-panel h2 {
    margin: 0 0 20px;
    color: var(--pm-text);
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.pm-dashboard-panel p {
    color: var(--pm-muted);
}

/* =========================================================
   DASHBOARD CARDS / ORDERS
========================================================= */

.pm-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.pm-dashboard-card {
    padding: 22px;
    border: 1px solid var(--pm-border);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #fbf8ff);
}

.pm-dashboard-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--pm-muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.pm-dashboard-card strong {
    display: block;
    color: var(--pm-primary-dark);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pm-order-list {
    display: grid;
    gap: 14px;
}

.pm-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    background: #fff;
}

.pm-order-item h3 {
    margin: 0 0 6px;
    color: var(--pm-text);
    font-size: 18px;
}

.pm-order-item p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 14px;
}

.pm-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   DASHBOARD FORM
========================================================= */

.pm-dashboard-form {
    display: grid;
    gap: 16px;
}

.pm-dashboard-form label {
    display: block;
    color: var(--pm-text);
    font-size: 13px;
    font-weight: 900;
}

.pm-dashboard-form input,
.pm-dashboard-form textarea,
.pm-dashboard-form select {
    width: 100%;
    min-height: 54px;
    margin-top: 7px;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    padding: 0 16px;
    background: #fff;
    outline: none;
}

.pm-dashboard-form textarea {
    min-height: 130px;
    padding-top: 14px;
    resize: vertical;
}

.pm-dashboard-form input:focus,
.pm-dashboard-form textarea:focus,
.pm-dashboard-form select:focus {
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 4px var(--pm-primary-soft);
}

.pm-dashboard-form button {
    width: fit-content;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--pm-primary);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

/* =========================================================
   ACCOUNT RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .pm-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .pm-dashboard-menu {
        position: static;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        border-radius: 22px;
    }

    .pm-dashboard-menu button,
    .pm-dashboard-menu a {
        width: auto;
        white-space: nowrap;
    }

    .pm-dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pm-dashboard-head {
        flex-direction: column;
    }

    .pm-order-item {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .pm-account-page,
    .pm-dashboard-page {
        padding-block: 44px;
    }

    .pm-account-card,
    .pm-dashboard-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .pm-account-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pm-dashboard-head h1 {
        font-size: clamp(34px, 11vw, 46px);
        letter-spacing: -0.055em;
    }
}

/* =========================================================
   DASHBOARD SUPPORT PANEL
========================================================= */

.pm-support-head {
    margin-bottom: 26px;
}

.pm-support-head span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pm-support-head h2 {
    margin-bottom: 10px !important;
}

.pm-support-head p {
    max-width: 620px;
    margin: 0;
    color: var(--pm-muted);
    font-size: 16px;
    line-height: 1.55;
}

.pm-support-form {
    max-width: 720px;
}

.pm-support-form input,
.pm-support-form textarea {
    background: #fbf8ff !important;
    border: 1px solid var(--pm-border) !important;
    box-shadow: 0 14px 34px rgba(91, 33, 182, 0.045);
}

.pm-support-form textarea {
    min-height: 170px !important;
}

.pm-support-form button {
    margin-top: 4px;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.24);
    transition: 0.2s ease;
}

.pm-support-form button:hover {
    transform: translateY(-2px);
}

/* =========================================================
   MEIN KONTO - SUPPORT CHAT
========================================================= */

.pm-support-chat {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.pm-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.pm-chat-message.bot {
    justify-content: flex-start;
}

.pm-chat-message.user {
    justify-content: flex-end;
}

.pm-chat-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
}

.pm-chat-bubble {
    max-width: min(100%, 560px);
    padding: 16px 18px;
    border: 1px solid var(--pm-border);
    border-radius: 22px;
    background: #fbf8ff;
    color: var(--pm-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
    box-shadow: 0 14px 34px rgba(91, 33, 182, 0.055);
}

.pm-chat-message.bot .pm-chat-bubble {
    border-top-left-radius: 8px;
    background:
        linear-gradient(135deg, var(--pm-primary-soft), #fff);
    color: var(--pm-primary-dark);
}

.pm-chat-message.user .pm-chat-bubble {
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
    color: #fff;
    border-color: transparent;
}

.pm-chat-messages {
    display: grid;
    gap: 14px;
}

.pm-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--pm-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(91, 33, 182, 0.07);
}

.pm-chat-form textarea {
    width: 100%;
    min-height: 54px;
    max-height: 180px;
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fbf8ff !important;
    color: var(--pm-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
    resize: none;
    outline: none !important;
    box-shadow: none !important;
}

.pm-chat-form textarea:focus {
    background: #fff !important;
    box-shadow: 0 0 0 4px var(--pm-primary-soft) !important;
}

.pm-chat-form button {
    min-width: 118px;
    min-height: 54px;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark)) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.24);
    transition: 0.2s ease;
}

.pm-chat-form button:hover {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .pm-chat-form {
        grid-template-columns: 1fr;
    }

    .pm-chat-form button {
        width: 100%;
    }

    .pm-chat-bubble {
        max-width: 100%;
    }
}