.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  transform: translateZ(0);
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}
.sft__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.stf__parent canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.stf__block {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  perspective: 2000px;
}
.stf__item {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
}
.stf__outerShadow {
  position: absolute;
  left: 0;
  top: 0;
}
.stf__innerShadow {
  position: absolute;
  left: 0;
  top: 0;
}
.stf__hardShadow {
  position: absolute;
  left: 0;
  top: 0;
}
.stf__hardInnerShadow {
  position: absolute;
  left: 0;
  top: 0;
}
.kutim-majalah-cover { position: relative; }
.kutim-majalah-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(13,71,161,0.85);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    z-index: 3;
}
.kutim-majalah-card:hover .kutim-majalah-share-btn { opacity: 1; transform: translateY(0); }
.kutim-majalah-share-btn:hover { background: #29b6f6; }
@media (max-width: 768px) {
    .kutim-majalah-share-btn { opacity: 1; transform: none; }
}
.kutim-flipbook-topactions { display: flex; align-items: center; gap: 10px; }
.kutim-flipbook-sharebtn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); color: #fff;
    border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
    padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background 0.2s ease;
}
.kutim-flipbook-sharebtn:hover { background: #29b6f6; border-color: #29b6f6; }
@media (max-width: 576px) {
    .kutim-flipbook-sharebtn span { display: none; }
    .kutim-flipbook-sharebtn { padding: 9px 11px; }
}
.kutim-share-popup {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 9999999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.kutim-share-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
    padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.3); animation: shareIn 0.2s ease;
}
@keyframes shareIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.kutim-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kutim-share-head h4 { margin: 0; font-size: 17px; color: #0d47a1; font-weight: 700; }
.kutim-share-close { background: none; border: none; font-size: 18px; color: #999; cursor: pointer; line-height: 1; }
.kutim-share-close:hover { color: #333; }
.kutim-share-title { font-size: 13px; color: #555; margin: 0 0 16px; line-height: 1.4; }
.kutim-share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kutim-share-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; border-radius: 10px; text-decoration: none; color: #fff;
    font-size: 11px; font-weight: 600; transition: transform 0.15s ease, opacity 0.15s ease;
}
.kutim-share-opt i { font-size: 20px; }
.kutim-share-opt:hover { transform: translateY(-3px); opacity: 0.92; color: #fff; }
.kutim-share-opt.sh-wa { background: #25D366; }
.kutim-share-opt.sh-fb { background: #1877F2; }
.kutim-share-opt.sh-tw { background: #000; }
.kutim-share-opt.sh-tg { background: #0088cc; }
.kutim-share-copy { display: flex; gap: 8px; }
.kutim-share-copy input {
    flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 9px 12px;
    font-size: 12px; color: #555; background: #f7f9fc;
}
.kutim-share-copy button {
    background: #0d47a1; color: #fff; border: none; border-radius: 8px;
    padding: 9px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: background 0.2s ease;
}
.kutim-share-copy button:hover { background: #29b6f6; }
.kutim-share-copy button.copied { background: #25D366; }
.kutim-flipbook-viewer {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a1e3c 0%, #0d47a1 50%, #1976d2 100%);
    z-index: 999999;
    overflow: hidden;
}
.kutim-flipbook-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.kutim-flipbook-info h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.kutim-flipbook-info small {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.kutim-flipbook-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kutim-flipbook-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}
.kutim-flipbook-loading {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}
.kutim-flipbook-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #29b6f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.kutim-flipbook-loading p {
    font-size: 16px;
    margin: 10px 0 4px;
}
.kutim-flipbook-loading small {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.kutim-flipbook-stage {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 100px;
}
.kutim-flipbook-wrapper {
    transform-origin: center center;
    transition: transform 0.3s ease;
}
.kutim-flipbook {
    margin: 0 auto;
}
.kutim-flipbook-zoom-level {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}
.kutim-flipbook-stage.zoomed {
    overflow: auto;
    align-items: flex-start;
    padding-top: 100px;
}
.kutim-flipbook-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kutim-flipbook-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}
.kutim-flipbook-arrow-left { left: 24px; }
.kutim-flipbook-arrow-right { right: 24px; }
.kutim-flipbook-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.kutim-flipbook-page-indicator {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
}
.kutim-flipbook-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
}
.kutim-flipbook-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.kutim-flipbook-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}
.kutim-flipbook-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.kutim-flipbook .stf__parent {
    position: relative;
}
.kutim-flipbook .stf__block {
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.kutim-page {
    background: #fff;
    overflow: hidden;
}
.kutim-page img,
.kutim-page canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 768px) {
    .kutim-flipbook-topbar {
        padding: 12px 16px;
    }
    .kutim-flipbook-info h3 {
        font-size: 14px;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kutim-flipbook-info small {
        font-size: 11px;
    }
    .kutim-flipbook-close {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .kutim-flipbook-stage {
        padding: 60px 8px 80px;
    }
    .kutim-flipbook-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .kutim-flipbook-arrow-left { left: 4px; }
    .kutim-flipbook-arrow-right { right: 4px; }
    .kutim-flipbook-toolbar {
        bottom: 10px;
        padding: 6px 10px;
        gap: 0;
        max-width: calc(100% - 20px);
        flex-wrap: wrap;
        justify-content: center;
    }
    .kutim-flipbook-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .kutim-flipbook-page-indicator {
        font-size: 11px;
        padding: 0 6px;
    }
    .kutim-flipbook-divider {
        margin: 0 3px;
    }
    .kutim-flipbook-zoom-level {
        font-size: 10px;
        min-width: 32px;
    }
}
@media (max-width: 480px) {
    .kutim-flipbook-info h3 {
        max-width: 140px;
        font-size: 13px;
    }
    .kutim-flipbook-stage {
        padding: 56px 4px 90px;
    }
    .kutim-flipbook-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .kutim-flipbook-btn {
        width: 28px;
        height: 28px;
    }
}
#flipbook-container {
    min-height: 600px;
    max-height: 800px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
#pdf-canvas {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#flipbook-container:fullscreen {
    max-height: 100vh;
}
#flipbook-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.kutim-majalah-kanvas { background: #525659; }
.kutim-majalah-baca-kartu { background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.08); overflow: hidden; }
.kutim-majalah-baca-kepala { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; background: #0d6efd; color: #fff; }
.kutim-majalah-baca-kepala h2 { font-size: 1.35rem; margin: 0 0 4px; color: #fff; }
.kutim-majalah-baca-aksi { display: flex; flex-wrap: wrap; gap: 6px; }
.kutim-majalah-kanvas { background: #525659; min-height: 60vh; }
.kutim-majalah-kanvas canvas { display: block; margin: 0 auto; max-width: 100%; height: auto; }
